package cn.kgc.airvue.controller;

import cn.kgc.airvue.pojo.Airqualityindex;
import cn.kgc.airvue.pojo.District;
import cn.kgc.airvue.pojo.ResultEntity;
import cn.kgc.airvue.service.AirQualitService;
import cn.kgc.airvue.service.impl.DistrictServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class DisController {

    @Resource
    DistrictServiceImpl districtService;
    @RequestMapping("/seleDis")
    public ResultEntity<List<District>> seleAir(){
        List<District> sele = districtService.sele();
    return ResultEntity.successWithoutData(sele);
    }
}
